package com.cheng.chat;

public class TalkStudent {
    public static void main(String[] args) {
        new Thread(new TalkSend(7777,9999,"localhost")).start();//学生的消息从7777端口发出去，发送到9999
        new Thread(new TalkReceive(8888,"老师")).start();//学生通过8888端口接收老师发送过来的消息
    }
}
